package com.yun.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = "/web")
public class WebDrlController {

	@RequestMapping("/thy")
	public String thy(ModelMap map) {
		map.addAttribute("host", "http://www.thymeleaf.org/");
		return "thymeleaf";
	}

	@RequestMapping("/free")
	public String free(ModelMap map) {
		map.addAttribute("host", "http://freemarker.org/");
		return "freemarker";
	}

	@RequestMapping("/vel")
	public String vel(ModelMap map) {
		map.addAttribute("host", "http://velocity.apache.org/");
		return "velocity";
	}

}
